<% include ../../header.ejs %>

  <div class="container-fluid">
    <div class="row">
      <% include ../../sidebar.ejs%>
        <div class="col-md-9">
          <h3>文章编辑</h3>
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">添加</h3>
            </div>
            <div class="panel-body">
              <form action="/article/edit" method="post" enctype="multipart/form-data">
                <input type="hidden" name="aid" value="<%=aid%>">
                <div class="form-group">
                  <label for="">标题</label>
                  <input type="text" class="form-control" name="title" value="<%=title%>">
                </div>
                <div class="form-group">
                  <label for="">缩略图</label>
                  <br>
                  <img style="width:60px;height:60px;" src="<%=avatar%>" alt="">
                  <input type="file" class="form-control" name="avatar" id="" placeholder="">
                </div>
                <div class="form-group">
                  <label for="">内容</label>
                  <textarea name="content" class="form-control" cols="30" rows="10"><%=content%></textarea>
                </div>
                <div class="form-group">
                  <input type="submit" value="保存">
                </div>
              </form>
            </div>
          </div>
        </div>
    </div>

  </div>


  <% include ../../footer.ejs%>
